package ro.pub.cs.stadium.document.logic;
import ro.pub.cs.stadium.document.*;

public class Variable {
	String name;
	private boolean out;
	
	public Variable(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	
	public Variable(String name,boolean type) {
		this(name);
		out = type;
	}
	

	
	public void setType (boolean type) {
		this.out = type; 
	}
	
	public boolean getType () {
		return out;
	}
	
	public boolean equals(Object v2) {
		return name.equals(((Variable)v2).name);
	}
	
	
	public boolean isOut() {
		return out;
	}
	
}
